package org.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/consumer")
public class UserController {

    @GetMapping("/findAll/{num}")
    public List<String> findAll(@PathVariable("num") String num) {
        System.out.println("hello:"+num);
        List<String> list = new ArrayList<>();
        list.add("1");
        return list;
    }

}